package com.alibaba.otter.manager.biz.config.node.dal.dataobject;

import com.alibaba.otter.manager.biz.config.node.dal.ibatis.NodeParameterTypeHandler;
import com.alibaba.otter.manager.biz.dal.AbstractDO;
import com.alibaba.otter.shared.common.model.config.node.NodeParameter;
import com.alibaba.otter.shared.common.model.config.node.NodeStatus;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.sql.Timestamp;

import com.mybatisflex.core.handler.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.time.Instant;

/**
 *  实体类。
 *
 * @author LCH
 * @since 2024-09-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "node")
public class NodeDO extends AbstractDO {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String name;

    private String ip;

    private Long port;

    @Column(ignore = true)
    private NodeStatus status;

    private String description;

    @Column(typeHandler = NodeParameterTypeHandler.class)
    private NodeParameter parameters;



}
